<?xml version="1.0" encoding="iso-8859-1"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
  <html xmlns="http://www.w3.org/1999/xhtml">
		<head>
			<!-- template designed by Marco Von Ballmoos  -->
			<title>File Source for sample.php</title>
			<link rel="stylesheet" href="../media/stylesheet.css" />
											</head>
		<body>
						<h1>Source for file sample.php</h1>
<p>Documentation is available at <a href="../DomBase/_libsPub---DomBBCode---sample.php.html">sample.php</a></p>
<div class="src-code">
<div class="src-code"><ol><li><div class="src-line"><a name="a1"></a><span class="src-php">&lt;?php</span></div></li>
<li><div class="src-line"><a name="a2"></a><span class="src-var">$post&nbsp;</span>=&nbsp;<span class="src-var">$_POST</span><span class="src-sym">[</span><span class="src-str">'in'</span><span class="src-sym">]</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a3"></a><span class="src-php">?&gt;</span></div></li>
<li><div class="src-line"><a name="a4"></a>&lt;html&gt;</div></li>
<li><div class="src-line"><a name="a5"></a>&lt;head&gt;</div></li>
<li><div class="src-line"><a name="a6"></a>&lt;title&gt;BBCode&nbsp;Test&lt;/title&gt;</div></li>
<li><div class="src-line"><a name="a7"></a>&lt;script&nbsp;type=&quot;text/javascript&quot;&nbsp;src=&quot;BBCode.js&quot;&gt;&lt;/script&gt;</div></li>
<li><div class="src-line"><a name="a8"></a>&lt;script&nbsp;type=&quot;text/javascript&quot;&gt;</div></li>
<li><div class="src-line"><a name="a9"></a>function&nbsp;outputBBCode(textarea)&nbsp;{</div></li>
<li><div class="src-line"><a name="a10"></a>&nbsp;&nbsp;&nbsp;&nbsp;var&nbsp;editor&nbsp;=&nbsp;new&nbsp;DomBBCodeParser();</div></li>
<li><div class="src-line"><a name="a11"></a>&nbsp;&nbsp;&nbsp;&nbsp;document.getElementById('out').innerHTML&nbsp;=&nbsp;editor.parse(textarea.value);</div></li>
<li><div class="src-line"><a name="a12"></a>}</div></li>
<li><div class="src-line"><a name="a13"></a>var&nbsp;editor&nbsp;=&nbsp;new&nbsp;DomBBCodeEditor(&nbsp;'in'&nbsp;);</div></li>
<li><div class="src-line"><a name="a14"></a>&lt;/script&gt;</div></li>
<li><div class="src-line"><a name="a15"></a>&lt;/head&gt;</div></li>
<li><div class="src-line"><a name="a16"></a>&lt;body&gt;</div></li>
<li><div class="src-line"><a name="a17"></a>&nbsp;&nbsp;&nbsp;&nbsp;&lt;div&gt;</div></li>
<li><div class="src-line"><a name="a18"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;a&nbsp;class=&quot;button&quot;&nbsp;href=&quot;javascript:editor.addTag('[b]','[/b]');&quot;&gt;&nbsp;B&nbsp;&lt;/a&gt;</div></li>
<li><div class="src-line"><a name="a19"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;a&nbsp;class=&quot;button&quot;&nbsp;href=&quot;javascript:editor.addTag('[u]','[/u]');&quot;&gt;&nbsp;U&nbsp;&lt;/a&gt;</div></li>
<li><div class="src-line"><a name="a20"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;a&nbsp;class=&quot;button&quot;&nbsp;href=&quot;javascript:editor.addTag('[i]','[/i]');&quot;&gt;&nbsp;I&nbsp;&lt;/a&gt;</div></li>
<li><div class="src-line"><a name="a21"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;a&nbsp;class=&quot;button&quot;&nbsp;href=&quot;javascript:editor.addUrl();&quot;&gt;&nbsp;URL&nbsp;&lt;/a&gt;</div></li>
<li><div class="src-line"><a name="a22"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;a&nbsp;class=&quot;button&quot;&nbsp;href=&quot;javascript:editor.addImage();&quot;&gt;&nbsp;IMAGE&nbsp;&lt;/a&gt;</div></li>
<li><div class="src-line"><a name="a23"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;br&gt;</div></li>
<li><div class="src-line"><a name="a24"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;a&nbsp;class=&quot;button&quot;&nbsp;href=&quot;javascript:editor.addTag(':)');&quot;&gt;&nbsp;:)&nbsp;&lt;/a&gt;</div></li>
<li><div class="src-line"><a name="a25"></a>&nbsp;&nbsp;&nbsp;&nbsp;&lt;/div&gt;</div></li>
<li><div class="src-line"><a name="a26"></a>&nbsp;&nbsp;&nbsp;&nbsp;&lt;textarea&nbsp;name=&quot;in&quot;&nbsp;id=&quot;in&quot;&nbsp;rows=&quot;12&quot;&nbsp;cols=&quot;80&quot;&gt;</div></li>
<li><div class="src-line"><a name="a27"></a>&nbsp;&nbsp;&nbsp;&nbsp;[b]bold[/b],&nbsp;[i]italic[/i],&nbsp;[u]underlined[/u],&nbsp;[s]strike-through[/s],&nbsp;[samp]sample[/samp]&nbsp;</div></li>
<li><div class="src-line"><a name="a28"></a>&nbsp;&nbsp;&nbsp;&nbsp;[url]http://blogs.stonesteps.ca/showpost.asp?pid=33[/url]</div></li>
<li><div class="src-line"><a name="a29"></a>&nbsp;&nbsp;&nbsp;&nbsp;[url=http://blogs.stonesteps.ca/showpost.asp?pid=33][i]BBCode[/i]&nbsp;Parser[/url]</div></li>
<li><div class="src-line"><a name="a30"></a>&nbsp;&nbsp;&nbsp;&nbsp;Inline&nbsp;[q=http://blogs.stonesteps.ca/showpost.asp?pid=33]quote[/q]</div></li>
<li><div class="src-line"><a name="a31"></a>&nbsp;&nbsp;&nbsp;&nbsp;[blockquote=http://blogs.stonesteps.ca/showpost.asp?pid=33]Block&nbsp;quote[/blockquote][pre]formatted&nbsp;</div></li>
<li><div class="src-line"><a name="a32"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;text[/pre][code]if(a&nbsp;==&nbsp;b)&nbsp;</div></li>
<li><div class="src-line"><a name="a33"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;print(&quot;done&quot;);[/code]text&nbsp;containing&nbsp;[noparse]&nbsp;[brackets]&nbsp;[/noparse]</div></li>
<li><div class="src-line"><a name="a34"></a>&nbsp;&nbsp;&nbsp;&nbsp;c[b][color=red]o[/color][/b][b][color=green]l[/color][/b][b][color=blue]o[/color][/b]rs&nbsp;and&nbsp;[size=1.2]text&nbsp;size[/size]</div></li>
<li><div class="src-line"><a name="a35"></a>&nbsp;&nbsp;&nbsp;&nbsp;[b][i]mismatched&nbsp;[/b]&nbsp;tags[/i]&nbsp;</div></li>
<li><div class="src-line"><a name="a36"></a>&nbsp;&nbsp;&nbsp;&nbsp;remaining&nbsp;text&nbsp;should&nbsp;not&nbsp;affect&nbsp;page&nbsp;HTML.</div></li>
<li><div class="src-line"><a name="a37"></a>&nbsp;&nbsp;&nbsp;&nbsp;&lt;/textarea&gt;</div></li>
<li><div class="src-line"><a name="a38"></a>&nbsp;&nbsp;&nbsp;&nbsp;&lt;div&gt;</div></li>
<li><div class="src-line"><a name="a39"></a>&nbsp;&nbsp;&nbsp;&nbsp;&lt;input&nbsp;type=&quot;submit&quot;&nbsp;value=&quot;Submit&quot;&nbsp;onclick=&quot;outputBBCode(document.getElementById(&amp;quot;in&amp;quot;))&quot;&nbsp;style=&quot;vertical-align:&nbsp;top&quot;&gt;</div></li>
<li><div class="src-line"><a name="a40"></a>&nbsp;&nbsp;&nbsp;&nbsp;&lt;/div&gt;</div></li>
<li><div class="src-line"><a name="a41"></a>&nbsp;&nbsp;&nbsp;&nbsp;&lt;div&nbsp;id=&quot;out&quot;&gt;&lt;/div&gt;</div></li>
<li><div class="src-line"><a name="a42"></a>&lt;/body&gt;</div></li>
<li><div class="src-line"><a name="a43"></a>&lt;/html&gt;</div></li>
</ol></div>
</div>
	<p class="notes" id="credit">
		Documentation generated on Fri, 24 Sep 2010 21:15:11 +0000 by <a href="http://www.phpdoc.org" target="_blank">phpDocumentor 1.4.1</a>
	</p>
	</body>
</html>